import request from '@/utils/request'


//入会
export function getAppMembership(query) {
  return request({
    url: '/business/backlog/getAppMembership',
    method: 'get',
    params: query
  })
}

export function auditAppMembershipSecondLaborUnion(data) {
  return request({
    url: '/business/appMembership/auditSecondLaborUnion',
    method: 'post',
    data: data
  })
}

export function auditAppMembershipFundCommittee(data) {
  return request({
    url: '/business/appMembership/auditFundCommittee',
    method: 'post',
    data: data
  })
}

//退会
export function getAppWithdrawal(query) {
  return request({
    url: '/business/backlog/getAppWithdrawal',
    method: 'get',
    params: query
  })
}

export function auditAppWithdrawalSecondLaborUnion(data) {
  return request({
    url: '/business/appWithdrawal/auditSecondLaborUnion',
    method: 'post',
    data: data
  })
}

export function auditAppWithdrawalFundCommittee(data) {
  return request({
    url: '/business/appWithdrawal/auditFundCommittee',
    method: 'post',
    data: data
  })
}

//转会申请 转出
export function getOutAppTransfer(query) {
  return request({
    url: '/business/backlog/getOutAppTransfer',
    method: 'get',
    params: query
  })
}
//转出审核
export function auditOut(data) {
  return request({
    url: '/business/appTransfer/auditOut',
    method: 'post',
    data: data
  })
}


//转会申请 转入
export function getIntoAppTransfer(query) {
  return request({
    url: '/business/backlog/getIntoAppTransfer',
    method: 'get',
    params: query
  })
}

//转入审核
export function auditInto(data) {
  return request({
    url: '/business/appTransfer/auditInto',
    method: 'post',
    data: data
  })
}

//补助申请
export function getAppSubsidy(query) {
  return request({
    url: '/business/backlog/getAppSubsidy',
    method: 'get',
    params: query
  })
}

//二级工会审核
export function auditAppSubsidySecondLaborUnion(data) {
  return request({
    url: '/business/appSubsidy/auditSecondLaborUnion',
    method: 'post',
    data: data
  })
}

//校医院审核
export function auditAppSubsidySchoolInfirmary(data) {
  return request({
    url: '/business/appSubsidy/auditSchoolInfirmary',
    method: 'post',
    data: data
  })
}

//基金管委会审核
export function auditAppSubsidyFundCommittee(data) {
  return request({
    url: '/business/appSubsidy/auditFundCommittee',
    method: 'post',
    data: data
  })
}
